/*
 * TeaShowInfoJIF.java
 *
 * Created on __DATE__, __TIME__
 */

package Presentation;

import Interface_Bl.UserBlI;
import Vo.TeaVo;

/**
 *
 * @author  __USER__
 */
public class TeaShowInfoJIF extends javax.swing.JInternalFrame {
	UserBlI userBlI = null;

	/** Creates new form TeaShowInfoJIF */
	public TeaShowInfoJIF(UserBlI userBlI) {
		initComponents();
		this.userBlI = userBlI;
		initial();
	}

	private void initial(){
		TeaVo teaVo = userBlI.returnTeaInfo(userBlI.getId());
		JTF_name.setText( teaVo.getName());
		JTF_dep.setText(teaVo.getDep());
		JTF_identity.setText(teaVo.getIdentity());
	}
	
	@Override
	public void doDefaultCloseAction() {
		// TODO Auto-generated method stub
		LoginJF.frameState.TeaShowInfoJIF--;
		super.doDefaultCloseAction();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		JL_name = new javax.swing.JLabel();
		JTF_name = new javax.swing.JTextField();
		JL_dep = new javax.swing.JLabel();
		JTF_dep = new javax.swing.JTextField();
		JL_identity = new javax.swing.JLabel();
		JTF_identity = new javax.swing.JTextField();

		setClosable(true);
		setIconifiable(true);
		setTitle("\u67e5\u770b\u4e2a\u4eba\u4fe1\u606f");

		JL_name.setText("\u59d3\u540d");

		JTF_name.setEditable(false);

		JL_dep.setText("\u6240\u5c5e\u9662\u7cfb");

		JTF_dep.setEditable(false);

		JL_identity.setText("\u8eab\u4efd");

		JTF_identity.setEditable(false);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGap(51, 51, 51)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING,
												false)
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		JL_identity)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																.addComponent(
																		JTF_identity))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		JL_name)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																.addComponent(
																		JTF_name,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		76,
																		javax.swing.GroupLayout.PREFERRED_SIZE)))
								.addGap(43, 43, 43)
								.addComponent(JL_dep)
								.addGap(18, 18, 18)
								.addComponent(JTF_dep,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										82,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(40, Short.MAX_VALUE)));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGap(32, 32, 32)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(JL_name)
												.addComponent(JL_dep)
												.addComponent(
														JTF_name,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														JTF_dep,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addGap(32, 32, 32)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(JL_identity)
												.addComponent(
														JTF_identity,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addContainerGap(172, Short.MAX_VALUE)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JLabel JL_dep;
	private javax.swing.JLabel JL_identity;
	private javax.swing.JLabel JL_name;
	private javax.swing.JTextField JTF_dep;
	private javax.swing.JTextField JTF_identity;
	private javax.swing.JTextField JTF_name;
	// End of variables declaration//GEN-END:variables

}